/**
 * Order_product.js
 *
 * @description :: TODO: You might write a short summary of how this model works and what it represents here.
 * @docs        :: http://sailsjs.org/documentation/concepts/models-and-orm/models
 */

module.exports = {

  tableName: 'sails_order_products',
  autoCreatedAt: false,
  autoUpdatedAt: false,
  attributes: {
    id: {
      type: 'integer',
      primary: true,
      required: true
    },
    order_id: {
      type: 'integer',
      required: true
    },
    product_id: {
      type: 'string',
      required: true
    },
    amount: {
      type: 'integer',
      required: true
    },
    box_id: {
      type: 'string',
    }
  }
};

